import 'package:aio/aio.dart';

/**
 * 客户副本信息
 */
class CustomersCopyInfo extends BaseBean {
  /// 客户ID
  String? CustomerId = null;

  /// 客户编码
  String? CustomerCode = null;

  /// 客户名称
  String? CustomerName = null;

  /// 联系地址（注册地址）
  String? CustomerAddress = null;

  /// 联系人（法人代表）
  String? CustomerLinkman = null;

  /// 联系电话（固定电话）
  String? CustomerTelephone = null;

  /// 电子邮箱
  String? Email = null;

  /// 邮政编码
  String? PostCode = null;

  /// 传真
  String? Fax = null;

  @override
  fromJson(Map<String, dynamic> json) {
    // TODO: implement fromJson
    CustomerId = json["CustomerId"]?.toString() ?? "";
    CustomerCode = json["CustomerCode"]?.toString() ?? "";
    CustomerName = json["CustomerName"]?.toString() ?? "";
    CustomerAddress = json["CustomerAddress"]?.toString() ?? "";
    CustomerLinkman = json["CustomerLinkman"]?.toString() ?? "";
    CustomerTelephone = json["CustomerTelephone"]?.toString() ?? "";
    Email = json["Email"]?.toString() ?? "";
    PostCode = json["PostCode"]?.toString() ?? "";
    Fax = json["Fax"]?.toString() ?? "";
  }

  @override
  instance() {
    // TODO: implement instance
    return CustomersCopyInfo();
  }

  @override
  Map<String, dynamic> toJson() {
    // TODO: implement toJson
    var map = <String, dynamic>{};
    map["CustomerId"] = CustomerId;
    map["CustomerCode"] = CustomerCode;
    map["CustomerName"] = CustomerName;
    map["CustomerAddress"] = CustomerAddress;
    map["CustomerLinkman"] = CustomerLinkman;
    map["CustomerTelephone"] = CustomerTelephone;
    map["Email"] = Email;
    map["PostCode"] = PostCode;
    map["Fax"] = Fax;
    return map;
  }
}
